package com.ruoyi.project.sedd.order.domain;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.sql.Date;
import java.util.Objects;

@Component
public class SellOrderB {
    private Integer orderId;
    private String itemName;
    private Integer collId;
    private Double orderNumber;
    private Integer userId;
    private Integer deptId;
    private Date createTime;
    private String paymentMethod;
    private String deliveryMethod;
    private String remark;
    private String orderCycle;

    @Autowired
    private SellCustomerA sellCustomerA;

    public SellOrderB() {
    }

    public SellOrderB(Integer orderId, String itemName, Integer collId, Double orderNumber,
                      Integer userId, Integer deptId, Date createTime, String paymentMethod,
                      String deliveryMethod, String remark, String orderCycle,
                      SellCustomerA sellCustomerA) {
        this.orderId = orderId;
        this.itemName = itemName;
        this.collId = collId;
        this.orderNumber = orderNumber;
        this.userId = userId;
        this.deptId = deptId;
        this.createTime = createTime;
        this.paymentMethod = paymentMethod;
        this.deliveryMethod = deliveryMethod;
        this.remark = remark;
        this.orderCycle = orderCycle;
        this.sellCustomerA = sellCustomerA;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Integer getCollId() {
        return collId;
    }

    public void setCollId(Integer collId) {
        this.collId = collId;
    }

    public Double getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Double orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public String getDeliveryMethod() {
        return deliveryMethod;
    }

    public void setDeliveryMethod(String deliveryMethod) {
        this.deliveryMethod = deliveryMethod;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getOrderCycle() {
        return orderCycle;
    }

    public void setOrderCycle(String orderCycle) {
        this.orderCycle = orderCycle;
    }

    public SellCustomerA getSellCustomerA() {
        return sellCustomerA;
    }

    public void setSellCustomerA(SellCustomerA sellCustomerA) {
        this.sellCustomerA = sellCustomerA;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SellOrderB that = (SellOrderB) o;
        return Objects.equals(orderId, that.orderId) &&
                Objects.equals(itemName, that.itemName) &&
                Objects.equals(collId, that.collId) &&
                Objects.equals(orderNumber, that.orderNumber) &&
                Objects.equals(userId, that.userId) &&
                Objects.equals(deptId, that.deptId) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(paymentMethod, that.paymentMethod) &&
                Objects.equals(deliveryMethod, that.deliveryMethod) &&
                Objects.equals(remark, that.remark) &&
                Objects.equals(orderCycle, that.orderCycle) &&
                Objects.equals(sellCustomerA, that.sellCustomerA);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orderId, itemName, collId, orderNumber, userId, deptId, createTime, paymentMethod, deliveryMethod, remark, orderCycle, sellCustomerA);
    }

    @Override
    public String toString() {
        return "SellOrderB{" +
                "orderId=" + orderId +
                ", itemName='" + itemName + '\'' +
                ", collId=" + collId +
                ", orderNumber=" + orderNumber +
                ", userId=" + userId +
                ", deptId=" + deptId +
                ", createTime=" + createTime +
                ", paymentMethod='" + paymentMethod + '\'' +
                ", deliveryMethod='" + deliveryMethod + '\'' +
                ", remark='" + remark + '\'' +
                ", orderCycle='" + orderCycle + '\'' +
                ", sellCustomerA=" + sellCustomerA +
                '}';
    }
}
